<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jq/jquery-3.6.4/jquery-3.6.4.min.js"></script>
    <style>
        p{
            width:200px;
            height: 100px;
            background:lightgreen;
        }
    </style>
</head>
<body>
    <div>
        <p>p01</p>
        <p>p02</p>
        <p>p03</p>
        <p>p04</p>
        <p>p05</p>
    </div>
    <script>
        $("p").mouseover(function(){
            console.log($(this).html());
            $(this).css("background","red");
        });
        $("p").mouseout(function(){
            $(this).css("background","lightgreen");
        });
    </script>
</body>
</html>